<html>
<head>
<script type='text/javascript'>
function changeSrc()
{
	var p1 = document.getElementById('param1').value;
	var p2 = document.getElementById('param2').value;
	var p3 = document.getElementById('param3').value;
	document.getElementById('veh_frame').src = 'dynamic_report.php?p1='+p1+'&p2='+p2+'&p3='+p3;
}

function clr()
{
	document.getElementById('param1').selectedIndex = 'Plate';
	document.getElementById('param2').selectedIndex = '=';
	document.getElementById('param3').value = '';
}
</script>
</head>
<body style="background-image:url(image/report_bg_transparent.png);background-repeat:no-repeat" onLoad="clr()">
<center><img border="0" src="image/head_veh_report.png" width="300" height="25"/></center>
<br />
&nbsp;&nbsp;<span style='margin-left:auto;margin-right:auto;font-size:12px;font-family:Times New Roman'>Where</span>
<select id="param1" style='margin-left:auto;margin-right:auto;font-size:12px;font-family:Times New Roman'>
  <!--VEHICLE DETAILS-->
  <option value="vehicle_tbl.veh_num">Plate</option>
  <option value="vehicle_tbl.year">Year</option>
  <option value="vehicle_tbl.manufacturer_name">Make</option>
  <option value="vehicle_tbl.model_name">Model</option>
  <option value="vehicle_tbl.ownership">Ownership</option>
  <option value="vehicle_tbl.operator">Driver</option>
  <option value="vehicle_tbl.department">Department</option>
  
  <!--PURCHASE-->
  <option value="veh_purchase_tbl.date">Purchase.Date</option>
  <option value="veh_purchase_tbl.price">Purchase.Price</option>
  <option value="veh_purchase_tbl.purchase_from">Purchase.Location</option>
  <option value="veh_purchase_tbl.expiration_date">Purchase.End of Warranty</option>
  
  <!--ENGINE-->
  <option value="veh_engine_tbl.fuel_type">Fuel Type</option>
  
  <!--CHASSIS-->
  <option value="veh_chassis_tbl.trans_type">Chassis Trans Type</option>
  
  <!--LTO-->
  <option value="veh_registration_tbl.field_office">Registration Office</option>
  <option value="veh_registration_tbl.date">Registration Date</option>
  
  <!--DISPOSAL-->
  <option value="veh_disposal_tbl.sales_date">Disposal Date</option>
  <option value="veh_disposal_tbl.price">Disposal Price</option>
  
  <!--GPS-->
  <option value="gps_tbl.device">GPS Device</option>
  
  <!--OTHER DETAILS-->
  <!--<option value="veh_other_details_tbl.fleet_card">w/ Fleet Card</option>-->
  <option value="veh_other_details_tbl.band">Band</option>
  <option value="veh_other_details_tbl.benefit_plan">Benefit Plan</option>
  <option value="veh_other_details_tbl.cost_center">Cost Center</option>
  <option value="veh_other_details_tbl.group1">Group</option>
  <option value="veh_other_details_tbl.division">Division</option>
  <option value="veh_other_details_tbl.section">Section</option>
</select>
<select id="param2" style='margin-left:auto;margin-right:auto;font-size:12px;font-family:Times New Roman'>
  <option value="=">=</option>
  <option value=">">></option>
  <option value="<"><</option>
  <option value="<>"><></option>
  <option value="LIKE">LIKE</option>
</select>
<input id="param3" type="param3" name="param3" style='margin-left:auto;margin-right:auto;font-size:12px;font-family:Times New Roman'/>
<input type="submit" value="Submit" style='margin-left:auto;margin-right:auto;font-size:12px;font-family:Times New Roman' onClick=changeSrc() />
<br />
<iframe id="veh_frame" src="dynamic_report.php" width="100%" height="100%" frameborder="0">
  <p>Your browser does not support iframes.</p>
</iframe>
<p style=" position: relative; top : 0; width: 100%; text-align: center;"><img border="0" src="image/footer_wo.png" width="135" height="30" style='margin-left:auto;margin-right:auto'/></img></p>
</body>
</html>